package cn.ycc1.user.service.impl;

import cn.ycc1.user.entity.User;
import cn.ycc1.user.mapper.UserMapper;
import cn.ycc1.user.service.UserService;
import cn.ycc1.user.vo.UserDetailVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Title:
 * @Author ycc
 * @Date 2023/7/8 20:46
 */
@Service
@Slf4j
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;

    @Override
    public User findByUsername(String username) {
        return userMapper.findByUsername(username);
    }

    @Override
    public User findByUserId(Long userId) {
        return userMapper.findByUserId(userId);
    }
}
